From: Paul Eggert Date: Thu, 14 Apr 2011 02:21:33 +0000 (-0700) Subject: * search.c (searchbufs, searchbuf_head): Now static. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~4132^2~20 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=c194f484205b40fa5cf1e2c17734adf657e7ca3e;p=emacs.git * search.c (searchbufs, searchbuf_head): Now static. --- diff --git a/src/ChangeLog b/src/ChangeLog index 3db92e26131..16af7fb97c3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2011-04-14 Paul Eggert + * search.c (searchbufs, searchbuf_head): Now static. + * scroll.c (scroll_cost): Remove; unused. * dispextern.h (scroll_cost): Remove decl. diff --git a/src/search.c b/src/search.c index ea10e47f556..c522de90e05 100644 --- a/src/search.c +++ b/src/search.c @@ -53,10 +53,10 @@ struct regexp_cache }; /* The instances of that struct. */ -struct regexp_cache searchbufs[REGEXP_CACHE_SIZE]; +static struct regexp_cache searchbufs[REGEXP_CACHE_SIZE]; /* The head of the linked list; points to the most recently used buffer. */ -struct regexp_cache *searchbuf_head; +static struct regexp_cache *searchbuf_head; /* Every call to re_match, etc., must pass &search_regs as the regs